<?php /* Smarty version 2.6.26, created on 2012-05-12 14:52:51
         compiled from blocks%5Cuser_navbar.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', 'blocks\\user_navbar.tpl', 4, false),array('modifier', 'replace', 'blocks\\user_navbar.tpl', 15, false),array('function', 'rlHook', 'blocks\\user_navbar.tpl', 23, false),)), $this); ?>
<!-- user navigation bar -->

<div id="user_navbar">
	<div class="languages"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='blocks')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'lang_selector.tpl') : smarty_modifier_cat($_tmp, 'lang_selector.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></div>

	<div class="left"></div>
	<div class="center">
		<?php if ($this->_tpl_vars['isLogin']): ?>
			<a title="<?php echo $this->_tpl_vars['lang']['account_area']; ?>
" class="account" href="javascript:void(0)"><?php echo $this->_tpl_vars['isLogin']; ?>
<span>&nbsp;</span></a>
			<a class="logout" title="<?php echo $this->_tpl_vars['lang']['title_logout']; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['login']; ?>
.html?action=logout<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['login']; ?>
&amp;action=logout<?php endif; ?>"><?php echo $this->_tpl_vars['lang']['logout']; ?>
</a>
			<ul class="menu hide">
				<?php $_from = $this->_tpl_vars['account_menu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['mItem']):
?>
					<?php if ($this->_tpl_vars['mItem']['Key'] == 'my_messages' && ! $this->_tpl_vars['config']['messages_module']): ?><?php else: ?>
						<li>
							<a <?php if ($this->_tpl_vars['page'] == $this->_tpl_vars['mItem']['Path']): ?>class="active"<?php endif; ?> title="<?php echo $this->_tpl_vars['mItem']['title']; ?>
" href="<?php if ($this->_tpl_vars['mItem']['Page_type'] == 'external'): ?><?php echo $this->_tpl_vars['mItem']['Controller']; ?>
<?php else: ?><?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php if ($this->_tpl_vars['mItem']['Path'] != ''): ?><?php echo $this->_tpl_vars['mItem']['Path']; ?>
.html<?php echo $this->_tpl_vars['mItem']['Get_vars']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['mItem']['Path'] != ''): ?>?page=<?php echo $this->_tpl_vars['mItem']['Path']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['mItem']['Get_vars'])) ? $this->_run_mod_handler('replace', true, $_tmp, '?', '&') : smarty_modifier_replace($_tmp, '?', '&')); ?>
<?php endif; ?><?php endif; ?><?php endif; ?>"><?php echo $this->_tpl_vars['mItem']['name']; ?>
</a>
							<?php if ($this->_tpl_vars['mItem']['Key'] == 'my_messages' && $this->_tpl_vars['new_messages']): ?>
								<a title="<?php echo ((is_array($_tmp=$this->_tpl_vars['lang']['new_message_available'])) ? $this->_run_mod_handler('replace', true, $_tmp, '[count]', $this->_tpl_vars['new_messages']) : smarty_modifier_replace($_tmp, '[count]', $this->_tpl_vars['new_messages'])); ?>
" class="note" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php if ($this->_tpl_vars['mItem']['Path'] != ''): ?><?php echo $this->_tpl_vars['mItem']['Path']; ?>
.html<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['mItem']['Path'] != ''): ?>?page=<?php echo $this->_tpl_vars['mItem']['Path']; ?>
<?php endif; ?><?php endif; ?>"><img class="envelop" src="<?php echo $this->_tpl_vars['rlTplBase']; ?>
img/blank.gif" alt="" /></a>
							<?php endif; ?>
						</li>
					<?php endif; ?>
				<?php endforeach; endif; unset($_from); ?>
				
				<?php echo rlHook::load(array('name' => 'tplAfterAccountMenu'), $this);?>

			</ul>
			
			<script type="text/javascript">
			<?php echo '
			var user_menu = false;
			
			$(document).ready(function(){
				$(\'#user_navbar a.account\').click(function(){
					if ( !user_menu )
					{
						$(this).addClass(\'active\');
						$(\'#user_navbar ul.menu\').show();
						
						user_menu = true;
					}
					else
					{
						$(this).removeClass(\'active\');
						$(\'#user_navbar ul.menu\').hide();
						
						user_menu = false;
					}
				});
			});
			
			$(document).click(function(event){
				if ( !$(event.target).parent().hasClass(\'account\') && !$(event.target).hasClass(\'account\') )
				{
					$(\'#user_navbar ul.menu\').hide();
					$(\'#user_navbar a.account\').removeClass(\'active\');
					user_menu = false;
				}
			});
			
			'; ?>

			</script>
		<?php else: ?>
			<a title="<?php echo $this->_tpl_vars['lang']['create_account']; ?>
" class="registration" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['registration']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['registration']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['lang']['registration']; ?>
</a>
			<a title="<?php echo $this->_tpl_vars['lang']['login']; ?>
" class="login" href="javascript:void(0)"><?php echo $this->_tpl_vars['lang']['login']; ?>
</a>
		<?php endif; ?>
		
		<?php echo rlHook::load(array('name' => 'tplUserNavbar'), $this);?>

	</div>
	<div class="right"></div>
</div>

<?php if (! $this->_tpl_vars['isLogin']): ?>
	<div id="login_modal_source" class="hide">
		<div class="caption_padding"><?php echo $this->_tpl_vars['lang']['login']; ?>
</div>
		<form action="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['login']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['login']; ?>
<?php endif; ?>" method="post">
			<input type="hidden" name="action" value="login" />
			<table class="white">
			<tr>
				<td class="caption"><?php echo $this->_tpl_vars['lang']['username']; ?>
</td>
				<td class="field"><input type="text" name="username" style="width: 180px;" maxlength="100" value="<?php echo $_POST['username']; ?>
" /></td>
			</tr>
			<tr>
				<td class="caption"><?php echo $this->_tpl_vars['lang']['password']; ?>
</td>
				<td class="field"><input type="password" name="password" style="width: 180px;" maxlength="100" /></td>
			</tr>
			<tr>
				<td class="caption"></td>
				<td class="field"><div style="padding-top: 8px"><input type="submit" value="<?php echo $this->_tpl_vars['lang']['login']; ?>
" /></div></td>
			</tr>
			<tr>
				<td></td>
				<td class="field">
					<span class="white_12"><?php echo $this->_tpl_vars['lang']['forgot_pass']; ?>
</span> <a title="<?php echo $this->_tpl_vars['lang']['remind_pass']; ?>
" class="brown_12" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['remind']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['remind']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['lang']['remind']; ?>
</a>
				</td>
			</tr>
			</table>
		</form>
	</div>
	
	<script type="text/javascript">
	<?php echo '
	
	$(document).ready(function(){
		$(\'#user_navbar a.login\').flModal({
			width: 340,
			height: 230,
			source: \'#login_modal_source\'
		});
	});
	
	'; ?>

	</script>
<?php endif; ?>

<!-- user navigation bar end -->